﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    <!-- Libs CSS -->
    <link rel="stylesheet" href="@Url.Content("~/css/bootstrap.css")" />
    <link rel="stylesheet" href="@Url.Content("~/css/fonts/font-awesome/css/font-awesome.css")" />

    <!-- Responsive CSS -->
    <link rel="stylesheet" href="@Url.Content("~/css/bootstrap-responsive.css")" />

    <link rel="stylesheet" href="@Url.Content("~/css/jquery.mCustomScrollbar.css")" />

    <script type="text/javascript" src="@Url.Content("~/js/jquery-1.7.1.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/vendor/bootstrap.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/js/jqBootstrapValidation.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/js/jquery.unobtrusive-ajax.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/js/jquery.mCustomScrollbar.js")"></script>
</head>
<body>
    <script>
        $(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); });
    </script>
    <!-- Navbar
    ================================================== -->
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href="@Url.Action("Index")">Trang chủ</a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="">
                            <a href="@Url.Action("Index", "Home")">Đến trang shop</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="container">
        <!-- Docs nav
    ================================================== -->
        <div class="row" style="margin-top: 100px;">
            <div class="span3">                
                <ul class="nav nav-tabs nav-stacked">
                    <li><a href="@Url.Action("Index", "Admin")">Quản lí sản phẩm</a></li>
                    <li><a href="@Url.Action("Category","Admin")">Quản lí danh mục</a></li>
                    <li><a href="@Url.Action("Feedback", "Admin")">Quản lí feedback</a></li>
                    <li><a href="@Url.Action("Order", "Admin")">Quản lí đơn hàng</a></li>
                    <li><a href="@Url.Action("Customer", "Admin")">Quản lí thành viên</a></li>
                </ul>
                <div class="alert alert-info" id="adminAccount">                   
                </div>
            </div>
            <div class="span8">
                @RenderBody();
            </div>
        </div>
    </div>
    <script>
        $(function () {
            $.ajax(
                {
                    url: '@Url.Action("GetAccount", "Admin")',
                    type: "GET",
                    success: function (data) {
                        $('#adminAccount').html(data);
                    },
                    error: function (errorCode) {
                        $('#adminAccount').html('Đăng nhập trước khi thao tác');
                    }
                });
        });
    </script>
</body>
</html>
